<html lang="zh-CN">
<head>
<title>完成订单</title>
<meta charset="UTF-8">
<meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link href="{$Think.config.RESOURCEURL}wx_assets/css/product_list.css?v=201404081" rel="stylesheet">
<link href="{$Think.config.RESOURCEURL}wx_assets/css/product_templates.css?v=201401121" rel="stylesheet">
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/alertMsg.js"></script>
</head>
<body>
	<div class="lay_page page_order_result">
		<div class="lay_page_wrap">
			<div class="mod_cell ui_mt15">
				<div class="ui_pt10" style="text-align:center; margin:15px;">
					<img alt="" src="wx_assets/images/product/done.png">
					<strong class="ui_color_green ui_large">恭喜您申请退款成功！</strong>
				</div>
				<dl class="mod_dl dl_tabel">
					<dt class="ui_color_weak ui_align_right">订单编号：</dt>
					<dd class="">{$orderId}</dd>
					<notempty name="orderPrice">
					<dt class="ui_color_weak ui_align_right">退款金额：</dt>
					<dd class="">
						<span class="ui_color_strong">￥{$orderPrice}元</span>
					</dd>
					</notempty>
				</dl>
				<div class="mod_cell_hr"></div>
				<!-- <div class="qb_flex qb_mb10">
					 <a onClick="onDetail(this,{$orderId})" class="mod_btn btn_block btn_em flex_box">查看订单状态</a>
				</div> -->
			</div>
		</div>
	</div>
<script>
var hrefParamsArray = GetSessionIdFromHref(window.location.search);
hrefParamsArray["userName"]='{$userName}';
function GetSessionIdFromHref(search){
　　	var args = search.substring(1); 
　　	var retval = new Array(); 
	args = args.split("&"); 
		for(var i = 0; i < args.length; i ++){ 
			str = args[i]; 
			var arg = str.split("="); 
			if(arg.length <= 1) continue; 
			
			if(arg[0] == 'params') {
				var params = decodeURIComponent(arg[1]);
				var obj = eval('(' + params + ')');
				if (obj.rootid != undefined) {
					retval["rootid"] = obj.rootid;
				}
				if (obj.tplid != undefined) {
					retval["tplid"] = obj.tplid;
				}
			} else if(arg[0] == 'customerId') {
				retval["customerId"] = arg[1]; 
			}else if(arg[0] == 'userName'){
				retval["userName"] = arg[1]; 
			}
		} 
		return retval; 
}

function onDetail(ctrl,id) {
	var basePath = 'call.html?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
	var rootId = hrefParamsArray["rootid"] == undefined ? '' : ',"rootid":' + hrefParamsArray["rootid"];
	var tplid = hrefParamsArray["tplid"] == undefined ? 1 : hrefParamsArray["tplid"];
	ctrl.href = basePath + '&module=product&method=getOrderDetail&params={"tplid":' + tplid + ',"id":"' + id + rootId + '"}';
}
</script>
</body>
</html>